/**
 * 运行时配置文件
 */
import Footer from '@/components/Footer'
import Header from '@/components/Header'
import { RunTimeLayoutConfig } from 'umi'
import { PageLoading } from '@ant-design/pro-layout'
import RightContent from '@/components/RightContent'

/** 获取用户信息比较慢的时候会展示一个 loading */
export const initialStateConfig = {
  loading: <PageLoading />
}

/**
 * layout配置
 */
export const layout: RunTimeLayoutConfig = ({}) => {
  return {
    footerRender: () => <Footer />,
    rightContentRender: () => <RightContent />
  }
}
